package com.phiture.erp.finance.core.manage.impl;

import com.phiture.erp.finance.core.factory.ErpFinanceStatementFactory;
import com.phiture.erp.finance.core.manage.ErpFinanceStatementManage;
import com.phiture.erp.finance.core.pojo.dto.ErpGenerateFinanceStatementDTO;
import com.phiture.erp.finance.core.pojo.dto.ErpRemoveFinanceStatementDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author YH
 * @date 2025-06-12-9:44
 */

@Service
@RequiredArgsConstructor
public class ErpFinanceStatementManageImpl implements ErpFinanceStatementManage {
    private final ErpFinanceStatementFactory erpFinanceStatementFactory;

    @Override
    public boolean generateFinanceStatement(ErpGenerateFinanceStatementDTO dto) {
        return erpFinanceStatementFactory.generateFinanceStatement(dto);
    }

    @Override
    public void removeFinanceStatement(ErpRemoveFinanceStatementDTO dto) {
        erpFinanceStatementFactory.removeFinanceStatement(dto);
    }
}
